package com.chengqs.rapid.common.constants;

/**
 * <B>主类名称：</B>RapidProtocol<BR>
 * <B>概要说明：</B>enter<BR>
 *
 * @author: chengqs
 * @create: 2025-03-15 00:47:43
 **/
public interface RapidProtocol {
    String HTTP = "http";

    String DUBBO = "dubbo";

    static boolean isHttp(String protocol) {
        return HTTP.equals(protocol);
    }

    static boolean isDubbo(String protocol) {
        return DUBBO.equals(protocol);
    }
}
